/**
 * 
 */
package com.agrec.client;

import com.agrec.client.actors.Name;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTML;

/**
 * @author allomeen
 *
 */
public class CVViewer extends Composite {

	private FlexTable table;
	private Name user;
	
	public CVViewer(Name user) {
		this.user = user;
		init();
		
	}
	
	public CVViewer(String userName) {
		Name user = new Name();
		user.firstName(userName);
		
		init();
		
		table = new FlexTable();
	}

	private void init() {
		table = new FlexTable();
		//table.setWidth("400px");
		
		table.setWidget(0, 0, new HTML(user.firstName()));
		
		initWidget(table);
		
	}
	

}
